import Vue from "vue";

import App from "./App.vue";

import UsersA from "./components/UsersA.vue";
import UsersB from "./components/UsersB.vue";
import UsersC from "./components/UsersC.vue";
Vue.component("UsersA", UsersA);
Vue.component("UsersB", UsersB);
Vue.component("UsersC", UsersC);

// Vue.prototype.title = "hello";

Vue.mixin({
  // 属性
  data() {
    return { title: "hello", count: 10 };
  },
  computed: {
    fullName() {
      return "jack li" + this.title;
    },
  },
  // 方法
  methods: {
    say() {
      console.log("hello");
    },
  },
  created() {
    console.log("mixin created");
  },
});
new Vue({
  render: (h) => h(App),
}).$mount("#app");
